home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / commandhandler / nsPICommandUpdater.h < prev   
C/C++ Source or Header  |  2006-05-08  |  3KB  |  106 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsPICommandUpdater.idl
  3.  */
  4.  
  5. #ifndef __gen_nsPICommandUpdater_h__
  6. #define __gen_nsPICommandUpdater_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_domstubs_h__
  14. #include "domstubs.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsPICommandUpdater */
  23. #define NS_PICOMMANDUPDATER_IID_STR "b135f602-0bfe-11d5-a73c-f0e420e8293c"
  24.  
  25. #define NS_PICOMMANDUPDATER_IID \
  26.   {0xb135f602, 0x0bfe, 0x11d5, \
  27.     { 0xa7, 0x3c, 0xf0, 0xe4, 0x20, 0xe8, 0x29, 0x3c }}
  28.  
  29. class NS_NO_VTABLE nsPICommandUpdater : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_PICOMMANDUPDATER_IID)
  33.  
  34.   /* void init (in nsIDOMWindow aWindow); */
  35.   NS_IMETHOD Init(nsIDOMWindow *aWindow) = 0;
  36.  
  37.   /* void commandStatusChanged (in string aCommandName); */
  38.   NS_IMETHOD CommandStatusChanged(const char *aCommandName) = 0;
  39.  
  40. };
  41.  
  42. /* Use this macro when declaring classes that implement this interface. */
  43. #define NS_DECL_NSPICOMMANDUPDATER \
  44.   NS_IMETHOD Init(nsIDOMWindow *aWindow); \
  45.   NS_IMETHOD CommandStatusChanged(const char *aCommandName); 
  46.  
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  48. #define NS_FORWARD_NSPICOMMANDUPDATER(_to) \
  49.   NS_IMETHOD Init(nsIDOMWindow *aWindow) { return _to Init(aWindow); } \
  50.   NS_IMETHOD CommandStatusChanged(const char *aCommandName) { return _to CommandStatusChanged(aCommandName); } 
  51.  
  52. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  53. #define NS_FORWARD_SAFE_NSPICOMMANDUPDATER(_to) \
  54.   NS_IMETHOD Init(nsIDOMWindow *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aWindow); } \
  55.   NS_IMETHOD CommandStatusChanged(const char *aCommandName) { return !_to ? NS_ERROR_NULL_POINTER : _to->CommandStatusChanged(aCommandName); } 
  56.  
  57. #if 0
  58. /* Use the code below as a template for the implementation class for this interface. */
  59.  
  60. /* Header file */
  61. class _MYCLASS_ : public nsPICommandUpdater
  62. {
  63. public:
  64.   NS_DECL_ISUPPORTS
  65.   NS_DECL_NSPICOMMANDUPDATER
  66.  
  67.   _MYCLASS_();
  68.  
  69. private:
  70.   ~_MYCLASS_();
  71.  
  72. protected:
  73.   /* additional members */
  74. };
  75.  
  76. /* Implementation file */
  77. NS_IMPL_ISUPPORTS1(_MYCLASS_, nsPICommandUpdater)
  78.  
  79. _MYCLASS_::_MYCLASS_()
  80. {
  81.   /* member initializers and constructor code */
  82. }
  83.  
  84. _MYCLASS_::~_MYCLASS_()
  85. {
  86.   /* destructor code */
  87. }
  88.  
  89. /* void init (in nsIDOMWindow aWindow); */
  90. NS_IMETHODIMP _MYCLASS_::Init(nsIDOMWindow *aWindow)
  91. {
  92.     return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94.  
  95. /* void commandStatusChanged (in string aCommandName); */
  96. NS_IMETHODIMP _MYCLASS_::CommandStatusChanged(const char *aCommandName)
  97. {
  98.     return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100.  
  101. /* End of implementation class template. */
  102. #endif
  103.  
  104.  
  105. #endif /* __gen_nsPICommandUpdater_h__ */
  106.